package org.speedmall.core.controller;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.speedmall.core.bo.OrderCreateBO;
import org.speedmall.core.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hujiaguo
 * @Package org.speedmall.core.controller
 * @date 2024/4/25 18:49:55
 */
@Api(tags = "订单")
@Slf4j
@RestController
@RequestMapping("order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    public String create(OrderCreateBO orderCreateBO) {
        return orderService.create(orderCreateBO);
    }
}
